/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: ModelCmmdty.java
 * Author:   15050536
 * Date:     2017年1月6日 上午9:52:33
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.mainpushnew;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 款数与商品的关系
 *
 * @author 15050536 石键平
 */
@Entity(name = "model_cmmdties")
public class ModelCmmdty implements Serializable {

	/**
	 */
	private static final long serialVersionUID = -7147832739616151331L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 总部主推任务
	 */
	private Long hqTaskId;

	/**
	 * 款数id
	 */
	private Long modelId;

	/**
	 * 款数名称
	 */
	private String modelName;

	/**
	 * 商品编码
	 */
	private String cmmdtyCode;

	/**
	 * 品类编码
	 */
	private String cateCode;

	/**
	 * 品牌名称
	 */
	private String brandName;

	/**
	 * 型号
	 */
	private String modelDesc;

	public ModelCmmdty() {
	}

	/**
	 * @param modelName
	 * @param cmmdtyCode
	 * @param cateCode
	 * @param brandName
	 * @param modelDesc
	 */
	public ModelCmmdty(String modelName, String cmmdtyCode, String cateCode, String brandName, String modelDesc) {
		this.modelName = modelName;
		this.cmmdtyCode = cmmdtyCode;
		this.cateCode = cateCode;
		this.brandName = brandName;
		this.modelDesc = modelDesc;
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "hq_task_id")
	public Long getHqTaskId() {
		return hqTaskId;
	}

	public void setHqTaskId(Long hqTaskId) {
		this.hqTaskId = hqTaskId;
	}

	@Column(name = "model_id")
	public Long getModelId() {
		return modelId;
	}

	public void setModelId(Long modelId) {
		this.modelId = modelId;
	}

	@Column(name = "model_name")
	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	@Column(name = "cmmdty_code")
	public String getCmmdtyCode() {
		return cmmdtyCode;
	}

	public void setCmmdtyCode(String cmmdtyCode) {
		this.cmmdtyCode = cmmdtyCode;
	}

	@Column(name = "cate_code")
	public String getCateCode() {
		return cateCode;
	}

	public void setCateCode(String cateCode) {
		this.cateCode = cateCode;
	}

	@Column(name = "brand_name")
	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	@Column(name = "model_desc")
	public String getModelDesc() {
		return modelDesc;
	}

	public void setModelDesc(String modelDesc) {
		this.modelDesc = modelDesc;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
